﻿@{
    Layout = null;

    var reamk = ViewBag.reamk;
}


 
    @Content.Common(Url)
    @*@Content.tymgjtype(Url)*@
    @Content.jQueryCF(Url)
    <script src="~/Scripts/jquery.qrcode.min.js"></script>
 
    @Html.Partial("Global/_PartialNavigation")
    <div style=" width:100%;height:550px; text-align:center;">
        <p style=" font-size:16px;">支付成功后，立即跳往账户管理页面，二维码两小时内有效！请勿刷新页面</p>
        <p style=" font-size:16px;">请您及时付款以便订单及时处理！订单号：@ViewBag.Trade_no</p>
        <p style=" font-size:16px; color:red;">@ViewBag.fee元</p>
        <img id="Image2" src="@Url.Action("MakeQRCode", "Payment")?data=@ViewBag.ImageUrl" style="width:200px;height:200px;" />
        <p>扫一扫微信支付</p>
     </div>
    <input type="hidden" id="Trade_no" value="@ViewBag.Trade_no" />  
 
<script type="text/javascript">
    wxPayPage = 1;


    var iCount = setInterval(check, 2000);  //每隔2秒执行一次check函数。

    function check() {
      
        $.L.ajaxHandle({
            url: ACTION_URL("ResultPayWX", "Payment"),
            data:{id: '',outid: $("#Trade_no").val(),remark:"@reamk"},
            loading:0,
            success: function (json) {
                if (json == "trade_state_desc=订单未支付"||json=="") {
                } else {
                    
                    window.clearInterval(iCount);//清空秒执行函数
                    $('.main .big-right').attr('pay', 'record');
                    $('.main .big-right').load('/Market/FlowRecharge');
                }
            }
        });
    }

   @*function Ajax_AddFinanciallog(cid,json)
    {
        $.L.ajaxHandle({
            url: ACTION_URL("AddFinanciallog", "Payment"),
            data: { jine: cid, reamk: "@reamk",data:json },
            loading: 0,
            success: function (data) {
              
               if (data>0) {
               
                }
            }
        });
    }*@
</script>